<!DOCTYPE html>
<html lang="en">
<head div_html=IrG0mD >
    <meta charset="UTF-8">
    <title>订单系统-{$webname}</title>
</head>
<body>

{request 'pc/pub/header'}
<!-- 公用头部结束 -->

<div class="admin-side">
    <div class="side-menu-block">
        <h3 class="side-menu-title">订单管理</h3>
        <ul class="side-menu-group">
            <?php $default_url = '';?>
            {if !empty($line_product)}
            <?php if(!$default_url) $default_url = '/plugins/supplier_line/order/all';?>
            <li><a href="/plugins/supplier_line/order/all" class="item active" target="frm">线路订单</a></li>
            {/if}
            {if !empty($hotel_product)}
            <?php if(!$default_url) $default_url = '/plugins/supplier_hotel/order/all';?>
            <li><a href="/plugins/supplier_hotel/order/all" class="item" target="frm">酒店订单</a></li>
            {/if}
            {if !empty($spot_product)}
            <?php if(!$default_url) $default_url = '/plugins/supplier_spot/order/allbills';?>
            <li><a href="/plugins/supplier_spot/order/allbills" class="item" target="frm">门票订单</a></li>
            {/if}
            {if !empty($car_product)}
            <?php if(!$default_url) $default_url = '/plugins/supplier_car/order/all';?>
            <li><a href="/plugins/supplier_car/order/all" class="item" target="frm">租车订单</a></li>
            {/if}
            {if !empty($tuan_product)}
            <?php if(!$default_url) $default_url = '/plugins/supplier_tuan/order/all';?>
            <li><a href="/plugins/supplier_tuan/order/all" class="item" target="frm">团购订单</a></li>
            {/if}
            {if !empty($techan_product)}
            <?php if(!$default_url) $default_url = '/plugins/supplier_techan/order/all';?>
            <li><a href="/plugins/supplier_techan/order/all/typeid/118" class="item" target="frm">特产订单</a></li>
            {/if}
            {if !empty($outdoor_product)}
            <?php if(!$default_url) $default_url = '/plugins/supplier/outdoor/order/all';?>
            <li><a href="/plugins/supplier/outdoor/order/all" class="item" target="frm">活动订单</a></li>
            {/if}
            {if !empty($food_product)}
            <?php if(!$default_url) $default_url = '/plugins/supplier/food/order/all';?>
            <li><a href="/plugins/supplier/food/order/all" class="item" target="frm">美食订单</a></li>
            {/if}
            {if !empty($tongyong_product)}
            {loop $tongyong_list $t}
            <?php if(!$default_url) $default_url = '/plugins/supplier_tongyong/order/all/typeid/'.$t['id'];?>
            <li><a href="/plugins/supplier_tongyong/order/all/typeid/{$t['id']}" class="item" target="frm">{$t['modulename']}</a></li>
            {/loop}
            {/if}
        </ul>
    </div>
</div>
<script>
    $(function () {
        var firstObj = $(".side-menu-group").find('.item').get(0);
        $(firstObj).addClass('active');
    });

</script>

<!-- 侧边栏导航 -->

<div class="admin-main">
    <div id="tab_product_block" class="block-tab-container">
    <iframe src="<?php echo $default_url?>" name="frm" style="border: 0;width: 100%;overflow: auto;">
    </iframe>
    </div>
</div>


<script>

    $(function(){

        //给列表容器赋予一个动态高度
        function sizeHeight(){
            var pmHeight = $(window).height();
            var contentHeight=pmHeight-110;
            // $(".side-menu,.panel").height(contentHeight);
            $(".admin-main iframe").height(contentHeight);
        }

        //高度改变
        $(window).resize(function(){
            sizeHeight()
        })
        sizeHeight();

        //左侧导航样式控制
        $('.side-menu-group').find(".item").on('click',function () {
            var item = $(this);
            $('.side-menu-group').find(".item").removeClass('active');
            item.addClass('active');
        })


    })

</script>

</body>
</html>